package com.app.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.app.sso.client.servlet.OnlineCounterListener;
import com.app.util.Constant;

public class AppListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent event) {
		
	}

	@Override
	public void contextInitialized(ServletContextEvent ctx) {
		initSSO();
	}
	
	private void initSSO(){
		OnlineCounterListener.clientIP = Constant.clientIP;
		OnlineCounterListener.serverURL = Constant.serverURL;
		OnlineCounterListener.serverLogin = Constant.serverLogin;
		OnlineCounterListener.clientFile = Constant.clientFile;
	}

}
